package com.piepesken.mediscale.di

import com.piepesken.mediscale.repository.DrugRepository
import com.piepesken.mediscale.repository.DrugRepositoryImp
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class RepositoryModule {
    @Binds
    @Singleton
    abstract fun drugRepository(repo: DrugRepositoryImp): DrugRepository
}
